package edu.ufl.cise.sanitas.types.comm;

import edu.ufl.cise.sanitas.types.data.User;

public class CreateNewAccountResponse extends Response {

	private User uesr;
	
	public CreateNewAccountResponse(Status status, String errmsg) {
		super(Types.CREATE_NEW_ACCOUNT, status, errmsg);
		this.uesr = null;
	}

	public CreateNewAccountResponse(User user) {
		super(Types.CREATE_NEW_ACCOUNT, Status.SUCCESS, null);
		this.uesr = user;
	}

	public User getUesr() {
		return uesr;
	}

}
